﻿using System;
using System.Collections.Generic;
using System.Text;

namespace taobao.Shop
{
    /// <summary>
    /// 店铺信息(Shop) ---- 是否隐私 [Y]/[N]
    /// </summary>
    public class Shop:BaseModel
    {
        private string _sid = string.Empty;
        /// <summary>
        /// 店铺编号   Number[N]
        /// </summary>
        public string sid
        {
            set { _sid = value; }
            get { return _sid; }
        }

        private string _cid = string.Empty;
        /// <summary>
        /// 店铺所属的类目编号   Number[N]
        /// </summary>
        public string cid
        {
            set { _cid = value; }
            get { return _cid; }
        }

        private string _nick = string.Empty;
        /// <summary>
        /// 卖家昵称   String [N]
        /// </summary>
        public string nick
        {
            set { _nick = value; }
            get { return _nick; }
        }

        private string _title = string.Empty;
        /// <summary>
        /// 店铺标题   String [N]
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }

        private string _desc = string.Empty;
        /// <summary>
        /// 店铺描述  String [N]
        /// </summary>
        public string desc
        {
            set { _desc = value; }
            get { return _desc; }
        }

        private string _bulletin = string.Empty;
        /// <summary>
        /// 店铺公告   String [N]
        /// </summary>
        public string bulletin
        {
            set { _bulletin = value; }
            get { return _bulletin; }
        }

        private string _pic_path = string.Empty;
        /// <summary>
        /// 店标地址。返回相对路径，可以用"http://logo.taobao.com/shop-logo/"来拼接成绝对路径。   String [N]
        /// </summary>
        public string pic_path
        {
            set { _pic_path = value; }
            get { return _pic_path; }
        }

        private string _created = string.Empty;
        /// <summary>
        /// 开店时间。格式：yyyy-MM-dd HH:mm:ss。   Date[N]
        /// </summary>
        public string created
        {
            set { _created = value; }
            get 
            {
                try
                {
                    return Convert.ToDateTime(_created).ToString("yyyy-MM-dd HH:mm:ss");
                }
                catch(Exception exp)
                {
                    return _created == string.Empty ? "1990-1-1 00:00:00" : "1990-1-1 00:00:00";//string.Empty;
                }
            }
        }

        private string _modified = string.Empty;
        /// <summary>
        /// 最后修改时间。格式：yyyy-MM-dd HH:mm:ss。  Date[N]
        /// </summary>
        public string modified
        {
            set { _modified = value; }
            get
            {
                try
                {
                    return System.Convert.ToDateTime(_modified).ToString("yyyy-MM-dd HH:mm:ss");
                }
                catch
                {
                    return _modified.Trim() != "" ? "1990-1-1 00:00:00" : "1990-1-1 00:00:00";
                }
            }
        }

        private ShopScore _shop_score = new ShopScore();
        /// <summary>
        /// 店铺动态评分
        /// </summary>
        public ShopScore shop_score
        {
            set { _shop_score = value; }
            get { return _shop_score; }
        }

private string _remain_count=string.Empty;
        /// <summary>
        /// 店铺收藏总数
        /// </summary>
public string remain_count
{
	set{_remain_count=value;}
	get{ return _remain_count;}
}
    }
}
